package com.huang.spring.service;

import com.huang.spring.mapper.UserMapper;
import com.huang.spring.pojo.UserInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService{
   @Resource
    UserMapper userMapper;

    @Override
    public List<UserInfo> getAll() {


        return userMapper.getAll();
    }

    @Override
    public List<UserInfo> getByName(String name) {
        return userMapper.getByName(name);
    }


}
